package ipad.asia.dao;

import ipad.asia.entity.Discount;
import ipad.asia.entity.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DiscountDao extends JpaRepository<Discount,Long> {
    Discount findByProductId(int productId);
    void deleteByProductId(int productId);
}
